function y = computeDamageVariable(element,kappa)
if strcmp(element.DamageLaw,'exponential')
    e0 = element.e0;
    ef = element.ef;
    y = 1 - e0/kappa*exp(-(kappa-e0)/ef);
else
    y = 0;
end
end
